"-p" Command Line Switch format

How do I point to the project when using the "-p" command line switch?
I tried "C:\Program Files\IBM\Rational\DOORS\9.3\bin\doors.exe" -p "Test Project/460706YY00000B04" and then all combinations of forward and backslash that I could think of, but it can't find the project.
What am I doing wrong?
(Apologies of this is a stupid question)

Thanks
SteveDennehy - Tue Aug 09 10:29:34 EDT 2011

Re: "-p" Command Line Switch format
OurGuest - Tue Aug 09 10:39:35 EDT 2011

If you have a project XYZ under DOORS Database then: -p "/XYZ"

Re: "-p" Command Line Switch format
SteveDennehy - Tue Aug 09 12:17:13 EDT 2011

OurGuest - Tue Aug 09 10:39:35 EDT 2011
If you have a project XYZ under DOORS Database then: -p "/XYZ"

Ha, I see my confusion. -p "/XYZ" will open the project for me, and that works fine. But what I am after is how to open a specific formal module inside of that project. I am trying to run a DXL in batch mode...
Any ideas?
Thanks

Re: "-p" Command Line Switch format
dbinkis - Wed Aug 10 11:07:16 EDT 2011

Perhaps you might try to use the module's url to open it instead?

Re: "-p" Command Line Switch format
Mathias Mamsch - Thu Aug 11 08:56:15 EDT 2011

SteveDennehy - Tue Aug 09 12:17:13 EDT 2011
Ha, I see my confusion. -p "/XYZ" will open the project for me, and that works fine. But what I am after is how to open a specific formal module inside of that project. I am trying to run a DXL in batch mode...
Any ideas?
Thanks

I think we had that in another post, you need to set the current folder in your Batch script. Setting -p is not sufficient, since it will not set the current folder, when I remember right. But I might be wrong. Regards, Mathias

Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS

Re: "-p" Command Line Switch format
llandale - Sun Aug 14 18:54:40 EDT 2011

The "-p project" switch is a residual artifact from v4 days when you logged in separately to each project, thus you had to specify the Project along with Username and Password to get in. When v5+ merged all projects into the same database in the familiar folder hierarchy you no longer needed that switch.

However it does seem to open the specified project.
-p "NameProject" ... works
-p "/NameProject"... works
-p "\NameProject"... does not work

So if you have a script that works on the "current project" no matter which one, you can have multiple shortcuts or scheduled tasks using the same exact script, each specifying a different Project.

However, the -p switch seems to be the only way to set context. Using switches I see no way to set some current Folder such as "Test Project/460706YY00000B04"; nor any way to open a Module and set that Current. Those chores must be done in the DXL you are executing, which then forces a single "current module" script to have multiple wrapper DXL to run them in batch.

Not going to try, but I suppose instead you could also do this. Have your DXL read the name of the desired module, and set that name with another DXL:
{} Write your 'current Module' script like this:
.... void DealWithModule(module mod) {whatever I want to do}
.... string NameMod = getenv("MyBatchModuleName")
.... Module mod = read(NameMod, false, true)
.... if (!null mod){DealWithModule(mod); close(mod)}
{} Invoke the above script with the "-batch" switch
... -b "c:/MyDXL/MyModuleScript.dxl"
{} Set the value with this switch:
... -dxl "setenv(\"MyBatchModuleName\", \"/MyProject/MyFolder/MyModule\")"

That "MyBatchModuleName" value appears in the Registry here along with other settings:
... HKEY_CURRENT_USER\Software\Telelogic\DOORS\9.2\Config

  • Louie